﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataBase;
using DataBase.DBmodels;
using Prism.Commands;
using Prism.Mvvm;

namespace GreenXi.Model
{
   public class RegionModel: BindableBase
    {
        #region 项目的增删改查
        public DelegateCommand<object> EditProject { get; set; }

        public DelegateCommand AddProject { get; set; }

        public DelegateCommand<object> MoveProjectUp { get; set; }

        public DelegateCommand<object> MoveProjectDown { get; set; }

        public DelegateCommand<object> DelProject { get; set; }

        public DelegateCommand<object> SaveProject { get; set; }
        #endregion

        public DelegateCommand<object> SaveColumn { get; set; }
        public DelegateCommand<object> CloseWindows { get; set; }


        private ObservableCollection<Region> _RegionList;
        public ObservableCollection<Region> RegionList
        {
            get => _RegionList;
            set
            {
                SetProperty(ref _RegionList, value);
            }
        }

        

        


        private Region _Regions;
        public Region Regions
        {
            get
            {
                return _Regions;
            }
            set
            {
                SetProperty(ref _Regions, value);
            }
        }

        private ObservableCollection<Gateway> _GatewayList;
        public ObservableCollection<Gateway> GatewayList
        {
            get => _GatewayList;
            set
            {
                SetProperty(ref _GatewayList, value);
            }
        }

        private Gateway _Gateway;
        public Gateway Gateway
        {
            get
            {
                return _Gateway;
            }
            set
            {
                SetProperty(ref _Gateway, value);
            }
        }
        #region 产品下拉框

        private ObservableCollection<CraftView>? _CraftList;
        public ObservableCollection<CraftView>? CraftList
        {
            get => _CraftList;
            set
            {
                _CraftList = value;
            }
        }
        #endregion
    }
}
